﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_21_2021
{
    class DeliveryRobot : Robot
    {
        private double hours;
        public double Hours { get => hours; set => hours = value; }


        public DeliveryRobot(string name,RobotType type,double hours):base(name,type)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("我是机器人：{0}，我已经连续工作{1}小时了",this.Name,this.hours);
        }
    }
}
